package cn.com.css.taxInspection.gt3.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import cn.com.css.taxInspection.gt3.entity.JcAjztTjEntity;
import cn.com.css.taxInspection.gt3.mapper.JcAjztTjMapper;
import cn.com.css.taxInspection.gt3.service.JcAjztTjService;

@Service("jcAjztTjService")
public class JcAjztTjServiceImpl extends ServiceImpl<JcAjztTjMapper, JcAjztTjEntity> implements JcAjztTjService {

    @Override
    public List<JcAjztTjEntity> list(String deptId, String year) {
        LambdaQueryWrapper<JcAjztTjEntity> queryWrapper = Wrappers.lambdaQuery();
        queryWrapper.eq(JcAjztTjEntity::getNd, year);
        queryWrapper.eq(JcAjztTjEntity::getSwjgDm, deptId);
        return this.list(queryWrapper);
    }
}